package com.next.aappublicapp.util;

import com.google.analytics.tracking.android.EasyTracker;

public class TrackerUtl {

	private static final String FACEBOOK_CATEGORY = "FacebookServer";
	private static final String APP_CATEGORY = "AapServer";
	
	public static void sendAapServerTiming(long intervalInMilliseconds,String name,String label){
		EasyTracker.getTracker().sendTiming(APP_CATEGORY, intervalInMilliseconds, name, label);
	}
	public static void sendFacebookServerTiming(long intervalInMilliseconds,String name,String label){
		EasyTracker.getTracker().sendTiming(FACEBOOK_CATEGORY, intervalInMilliseconds, name, label);
	}

	public static void sendFacebookEvent(String eventLabel){
		sendFacebookEvent(eventLabel, 1L);
	}
	public static void sendFacebookEvent(String eventLabel, long count){
		EasyTracker.getTracker().sendEvent("Android", "Facebook", eventLabel, count);
	}
	public static void sendAapEvent(String eventLabel){
		sendAapEvent(eventLabel, 1L);
	}
	public static void sendAapEvent(String eventLabel, long count){
		EasyTracker.getTracker().sendEvent("Android", APP_CATEGORY, eventLabel, count);
	}

}
